package com.CloudDream.Command.Admin;

import com.CloudDream.MoonCake;
import com.handy.lib.command.IHandyCommandEvent;
import com.handy.lib.util.BaseUtil;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.scheduler.BukkitRunnable;

public class MaterialCommand implements IHandyCommandEvent {

    @Override
    public String command() {
        return "Material";
    }

    @Override
    public String permission() {
        return "moonckae.material";
    }

    @Override
    public void onCommand(CommandSender commandSender, Command command, String s, String[] strings) {

        if (BaseUtil.isNotPlayer(commandSender).booleanValue()) {
            commandSender.sendMessage(MoonCake.prefix + "§c该指令只能由玩家使用");
            return;
        }

        (new BukkitRunnable() {
            @Override
            public void run() {

            }
        }).runTaskAsynchronously(MoonCake.getInstance());
    }
}
